/**
 *
 */
package com.ssyt.examinationsystem.service.impl;

import com.ssyt.examinationsystem.dao.IRuleInfoDAO;
import com.ssyt.examinationsystem.dao.impl.RuleInfoDAOImpl;
import com.ssyt.examinationsystem.entity.RuleInfo;
import com.ssyt.examinationsystem.service.IRuleInfoService;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
public class RuleInfoServiceImpl implements IRuleInfoService {
    IRuleInfoDAO ruleDao = new RuleInfoDAOImpl();

    @Override
    public int handPacking(RuleInfo rule) {
        return ruleDao.handPacking(rule);
    }

    @Override
    public int autoPacking(RuleInfo rule) {
        return ruleDao.autoPacking(rule);
    }

    @Override
    public List<Map<String, Object>> getRules() {
        return ruleDao.getRules();
    }

    @Override
    public int deleteRule(String ruleId) {
        return ruleDao.deleteRule(ruleId);
    }

    @Override
    public int updateRule(RuleInfo rule) {
        return ruleDao.updateRule(rule);
    }

    @Override
    public int addRule(RuleInfo rule) {
        return ruleDao.addRule(rule);
    }

}
